 <meta charset="utf-8">
 <div class="box box-primary" id="app_cloudMember_edit" style="max-width: 1200px;"> 
            <form role="form"  id="editForm" class="form-horizontal" >
            <div class="box-body" > 
            <div class="form-group" >
				<label for="password" class="col-sm-2 control-label" > 输入密码</label>
				<div class="col-sm-10">
					<input type="password" name="newPassword" v-model="cloudMember.newPassword" class="form-control" id="newPassword"  required />
				</div>
			</div>
            <div class="form-group" >
				<label for="password" class="col-sm-2 control-label" > 再次输入</label>
				<div class="col-sm-10">
					<input type="password" name="repeatNewPassword" v-model="cloudMember.repeatNewPassword" class="form-control" id="repeatNewPassword"  required />
				</div>
			</div>
            
           <div class="box-footer">
                 <button type="button" class="btn btn-default" v-on:click="cancle">取消</button>
                 <button type="button" class="btn btn-info pull-right"  v-on:click="set">提交</button>
              </div> 
               </form>
               
<script type="text/javascript">
var news= new Vue({
    el: '#app_cloudMember_edit',
    data: {
    	cloudMember:{
    		userId:undefined,
    		newPassword: undefined,
    		repeatNewPassword: undefined
    	},
    	bus:new Vue(),
     },
     mounted : function() {
			var _this=this;
			var param=zfesLayerEditDg.getLayerParam();//useId
			 _this.cloudMember.userId=param.userId;
		},
     methods: {
    	 set: function () {
    	    	if($("#editForm").valid()){
    	    		var _this=this;
    	    		var url="/pmp/service/ma/pmpCloudMember/setpwd";
    	    		zfesAjax.ajaxTodo(url,_this.$data.cloudMember, function(data){
    	    			alertSwal.successText(data.message);
    	    			layer.close(layer.index);
    	    		})
    	    	}
    	    },
    	    cancle:function(){
    	    	 layer.close(layer.index);
    	    }
    }
});
 </script>
</div>